package com.project.poetry.service.entity.dto.money;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author mengxj
 */
@Data
public class MoneyLoanOutDTO {

    @ApiModelProperty("等额本金总还款")
    private Double totalEqPrincipalPrice;

    @ApiModelProperty("等额本息总还款")
    private Double totalEqPrincipalInterestPrice;

    @ApiModelProperty("等额本金和等额本息总差别")
    private Double totalDifference;

    @ApiModelProperty("总还款期次")
    private Integer totalRepaymentTime;

    @ApiModelProperty("每期还款详情")
    private List<OneTimeRepayment> repaymentList;

    @Data
    public static class OneTimeRepayment{

        @ApiModelProperty("第几期")
        private Integer time;

        @ApiModelProperty("等额本金还款金额")
        private String eqPrincipal;

        @ApiModelProperty("等额本息还款金额")
        private String eqPrincipalInterest;

        @ApiModelProperty("等额本息 - 等额本息")
        private String difference;
    }
}
